<Window x:Class="Cruel_WoW_Launcher.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Title="The East"
        Height="597"
        Width="960"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen"
        WindowStyle="None"
        Loaded="Window_Loaded">
    <Window.Background>
        <VisualBrush>
            <VisualBrush.Visual>

                <MediaElement Name="mediaElement"
                              Source="Resources/Vmake.mp4"
                              Volume="0"
                              IsMuted="True"
                              LoadedBehavior="Manual"
                              UnloadedBehavior="Manual"
                              MediaEnded="OnMediaEnded"
                              Stretch="Fill" />
            </VisualBrush.Visual>
        </VisualBrush>
    </Window.Background>
    <Grid>
        <Grid HorizontalAlignment="Center"
              Height="597"
              VerticalAlignment="Center"
              Width="960"
              Background="#00000000"
              MouseLeftButtonDown="Grid_MouseLeftButtonDown">
            <Button x:Name="ExitButton"
                    Content=""
                    HorizontalAlignment="Left"
                    Height="12"
                    Margin="941,5,0,0"
                    VerticalAlignment="Top"
                    Width="12"
                    BorderBrush="{x:Null}"
                    Foreground="{x:Null}"
                    Style="{DynamicResource ButtonStyleExit}"
                    Cursor="Hand"
                    Click="ExitButton_Click">
                <Button.Background>
                    <ImageBrush Stretch="None"
                                ImageSource="Resources/exit_button_a.png" />
                </Button.Background>
            </Button>
            <Button x:Name="MinimizeButton"
                    Content=""
                    HorizontalAlignment="Left"
                    Height="12"
                    Margin="927,5,0,0"
                    VerticalAlignment="Top"
                    Width="12"
                    BorderBrush="{x:Null}"
                    Foreground="{x:Null}"
                    Style="{DynamicResource ButtonStyleMinimize}"
                    Cursor="Hand"
                    Click="MinimizeButton_Click">
                <Button.Background>
                    <ImageBrush Stretch="None"
                                ImageSource="Resources/minimize_button_a.png" />
                </Button.Background>
            </Button>
        </Grid>
        <Grid x:Name="Navbar"
              Height="64"
              Margin="20,21,20,0"
              VerticalAlignment="Top">
            <Grid.Background>
                <ImageBrush Stretch="None"
                            ImageSource="Resources/navbar_bg.png" />
            </Grid.Background>
            <Button Content="SUPPORT"
                    HorizontalAlignment="Left"
                    Margin="78,21,0,0"
                    VerticalAlignment="Top"
                    BorderBrush="{x:Null}"
                    Background="{x:Null}"
                    Foreground="White"
                    FontFamily="Arial"
                    FontSize="16"
                    FontWeight="Bold"
                    Style="{DynamicResource ButtonStyleLink}" />
            <Button Content="COMMUNITY"
                    HorizontalAlignment="Left"
                    Margin="225,21,0,0"
                    VerticalAlignment="Top"
                    BorderBrush="{x:Null}"
                    Background="{x:Null}"
                    Foreground="White"
                    FontFamily="Arial"
                    FontSize="16"
                    FontWeight="Bold"
                    Style="{DynamicResource ButtonStyleLink}" />
            <Button Content="ACCOUNT MANAGEMENT"
                    HorizontalAlignment="Left"
                    Margin="407,21,0,0"
                    VerticalAlignment="Top"
                    BorderBrush="{x:Null}"
                    Background="{x:Null}"
                    Foreground="White"
                    FontFamily="Arial"
                    FontSize="16"
                    FontWeight="Bold"
                    Style="{DynamicResource ButtonStyleLink}" />
            <Button Content="STORE"
                    HorizontalAlignment="Left"
                    Margin="680,21,0,0"
                    VerticalAlignment="Top"
                    BorderBrush="{x:Null}"
                    Background="{x:Null}"
                    Foreground="White"
                    FontFamily="Arial"
                    FontSize="16"
                    FontWeight="Bold"
                    Style="{DynamicResource ButtonStyleLink}" />
        </Grid>
        <Button Click="SettingsButton_Click"
                x:Name="SettingsButton"
                Content=""
                HorizontalAlignment="Left"
                Height="58"
                Margin="303,477,0,0"
                VerticalAlignment="Top"
                Width="58"
                BorderBrush="{x:Null}"
                Foreground="{x:Null}"
                Style="{DynamicResource ButtonStyleSettings}">
            <Button.Background>
                <ImageBrush Stretch="Uniform"
                            ImageSource="Resources/settings_button_a.png" TileMode="None" />
            </Button.Background>
        </Button>
        <Label Content="ИЗМЕНЕНИЯ"
               HorizontalAlignment="Left"
               Margin="23,126,0,0"
               VerticalAlignment="Top"
               FontFamily="Arial"
               FontSize="14"
               FontWeight="Bold"
               Background="{x:Null}"
               Foreground="White" />

        <Label x:Name="LabelNews"
               Content="ПОСЛЕДНИЕ НОВОСТИ"
               HorizontalAlignment="Left"
               Margin="404,126,0,0"
               VerticalAlignment="Top"
               FontFamily="Arial"
               FontSize="14"
               FontWeight="Bold"
               Background="{x:Null}"
               Foreground="White" />
        <Grid x:Name="NewsGrid"
              HorizontalAlignment="Left"
              Height="402"
              Margin="404,173,0,0"
              VerticalAlignment="Top"
              Width="537">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40*" />
                <ColumnDefinition Width="497*" />
            </Grid.ColumnDefinitions>
            <Grid.Background>
                <ImageBrush ImageSource="Resources/news_box.png"
                            Stretch="None" />
            </Grid.Background>
            <Image x:Name="NewsImage"
                   HorizontalAlignment="Left"
                   Height="164"
                   VerticalAlignment="Top"
                   Width="537"
                   Grid.ColumnSpan="2" />
            <ScrollViewer HorizontalAlignment="Left"
                          Height="185"
                          Margin="0,181,0,0"
                          VerticalAlignment="Top"
                          Width="537"
                          Style="{DynamicResource BlackBGScrollViewer}"
                          Grid.ColumnSpan="2">
                <RichTextBox x:Name="NewsArticle"
                             VerticalAlignment="Top"
                             Width="490"
                             Background="{x:Null}"
                             BorderBrush="{x:Null}"
                             IsInactiveSelectionHighlightEnabled="True"
                             IsReadOnly="True"
                             Style="{DynamicResource RichTextBoxStyleArticle}" />
            </ScrollViewer>
            <Label x:Name="NewsDate"
                   Content=""
                   HorizontalAlignment="Left"
                   Margin="10,376,0,0"
                   VerticalAlignment="Top"
                   Background="{x:Null}"
                   BorderBrush="{x:Null}"
                   FontFamily="Arial"
                   FontWeight="Bold"
                   Foreground="#FF83858A"
                   VerticalContentAlignment="Center"
                   Grid.ColumnSpan="2"
                   Width="150" />
            <Button x:Name="BtnReadMore"
                    Content="Подробнее"
                    HorizontalAlignment="Left"
                    Margin="413,379,0,0"
                    VerticalAlignment="Top"
                    Width="74"
                    FontFamily="Arial"
                    FontWeight="Bold"
                    Foreground="#FF83858A"
                    Background="{x:Null}"
                    BorderBrush="{x:Null}"
                    Style="{DynamicResource ButtonStyleReadMore}"
                    IsEnabled="False"
                    Click="BtnReadMore_Click"
                    Grid.Column="1" />
        </Grid>
        <Grid x:Name="GridSettings"
              Visibility="Hidden"
              Height="402"
              Width="537"
              HorizontalAlignment="Left"
              VerticalAlignment="Top"
              Margin="404,173,0,0">
			<Label x:Name="LabelSetting"
			   Content="НАСТРОЙКИ"
			   HorizontalAlignment="Left"
			   Margin="0,-46,0,0"
			   VerticalAlignment="Top"
			   FontFamily="Arial"
			   FontSize="14"
			   FontWeight="Bold"
			   Background="{x:Null}"
			   Foreground="White" />
            <Image Source="/Resources/news_box.png"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"/>
            <TextBlock Text="Папка для установки игры:"
           HorizontalAlignment="Left"
           VerticalAlignment="Top"
           Foreground="White"
           FontSize="16"
           FontWeight="Bold" Margin="10,10,0,0" FontFamily="Arial" />

            <Border Margin="10,33,10,0"
				Height="22"
				VerticalAlignment="Top"
				Background="#FF1A1A1A"
				BorderBrush="#FF8C8C8C"
				BorderThickness="1"
				CornerRadius="3">

                <TextBlock Text="Путь к папке"
				   FontSize="12"
				   Foreground="White"
				   FontFamily="Arial"
				   FontStyle="Italic"
				   Padding="4,0,0,0"
				   x:Name="TxtPuth" VerticalAlignment="Center"/>
            </Border>


            <Button Margin="0,34,0,348"
                    Content="●●●"
                    Name="Puth"
                    FontFamily="Arial"
                    Foreground="#FF83858A"
					HorizontalContentAlignment="Right"
                    Background="#00000000"
                    BorderBrush="{x:Null}"
					Padding="0,-1,10,0"
                    Style="{DynamicResource ButtonStyleReadMore}"
                    Click="Puth_Click" Width="515" FontWeight="Bold" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center" Height="20"/>
        </Grid>
        <Frame x:Name="FrmMain"
               Visibility="Hidden"
               NavigationUIVisibility="Hidden"
               Margin="404,123,0,0">

        </Frame>
        <ScrollViewer HorizontalAlignment="Left"
                      Height="249"
                      Margin="23,173,0,0"
                      VerticalAlignment="Top"
                      Width="297"
                      Style="{DynamicResource BlackBGScrollViewer}">
            <Grid x:Name="ChangelogsGrid"
                  VerticalAlignment="Top">
            </Grid>
        </ScrollViewer>

        <Button x:Name="PlayButton"
                HorizontalAlignment="Left"
                Margin="27,477,0,0"
                VerticalAlignment="Top"
                Width="272"
                Height="56"
                BorderBrush="{x:Null}"
                Foreground="{x:Null}"
                Style="{DynamicResource ButtonStylePlay}"
                Click="PlayButton_Click"
                Visibility="Hidden">
            <Button.Background>
                <ImageBrush Stretch="None"
                            ImageSource="Resources/play_button_a.png" />
            </Button.Background>
            <TextBlock Text="ИГРАТЬ"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center"
                       Foreground="White"
                       FontSize="16"
                       FontWeight="Bold" />
        </Button>

        <Button x:Name="UpdateButton"
                HorizontalAlignment="Left"
                Margin="27,477,0,0"
                VerticalAlignment="Top"
                Width="272"
                Height="56"
                BorderBrush="{x:Null}"
                Foreground="{x:Null}"
                Style="{DynamicResource ButtonStyleUpdate}"
                Click="UpdateButton_Click"
                Visibility="Hidden">
            <Button.Background>
                <ImageBrush Stretch="None"
                            ImageSource="Resources/update_button_a.png" />
            </Button.Background>
            <TextBlock Text="ОБНОВЛЕНИЯ"
                       HorizontalAlignment="Center"
                       VerticalAlignment="Center"
                       Foreground="White"
                       FontSize="16"
                       FontWeight="Bold" />
        </Button>

        <CheckBox x:Name="ChkHDGraphics"
				  Visibility="Hidden"
                  Content=""
                  HorizontalAlignment="Left"
                  Margin="28,432,0,0"
                  VerticalAlignment="Top"
                  Style="{DynamicResource CustomCheckBox}"
                  Foreground="White"
                  BorderBrush="{x:Null}"
                  Background="{x:Null}"
                  HorizontalContentAlignment="Center"
                  VerticalContentAlignment="Center"
                  Click="ChkHDGraphics_Click" />
        <Label Content="HD Клиент"
			   Visibility="Hidden"
               HorizontalAlignment="Left"
               Margin="62,436,0,0"
               VerticalAlignment="Top"
               FontFamily="Arial"
               FontSize="14"
               FontWeight="Bold"
               Foreground="White" />
        <Grid x:Name="ProgressGrid"
              HorizontalAlignment="Left"
              Height="49"
              Margin="10,538,0,0"
              VerticalAlignment="Top"
              Width="310"
              Visibility="Hidden">
            <ProgressBar x:Name="pbar"
                         HorizontalAlignment="Left"
                         Height="8"
                         Margin="20,12,0,0"
                         VerticalAlignment="Top"
                         Width="194"
                         BorderBrush="{x:Null}">
                <ProgressBar.Foreground>
                    <ImageBrush ImageSource="Resources/progressbar_fill.png" />
                </ProgressBar.Foreground>
                <ProgressBar.Background>
                    <ImageBrush Stretch="None"
                                ImageSource="Resources/progressbar_bg.png" />
                </ProgressBar.Background>
            </ProgressBar>
            <Image x:Name="SizeIcon"
                   HorizontalAlignment="Left"
                   Height="15"
                   Margin="21,26,0,0"
                   VerticalAlignment="Top"
                   Width="14"
                   Source="Resources/size_icon.png"
                   Stretch="None" />
            <RichTextBox x:Name="RtbProgress"
                         HorizontalAlignment="Left"
                         Margin="40,28,0,0"
                         VerticalAlignment="Top"
                         Width="248"
                         BorderBrush="{x:Null}"
                         Foreground="#FF676D75"
                         FontFamily="Arial"
                         FontSize="10"
                         FontWeight="Bold"
                         HorizontalContentAlignment="Center"
                         VerticalContentAlignment="Center"
                         Background="{x:Null}"
                         IsReadOnly="True"
                         Style="{DynamicResource RtbProgress}">
                <FlowDocument>
                    <Paragraph>
                        <Run x:Name="_CurrentFileName"
                             Text="patch-x.MPQ"
                             Foreground="#FFC57474" />
                        <Run Text="(" />
                        <Run x:Name="_FirstIndex"
                             Text="1"
                             Foreground="#FF8CA23F" />
                        <Run Text="/" />
                        <Run x:Name="_SecondIndex"
                             Text="4"
                             Foreground="#FF8CA23F" />
                        <Run Text=") @" />
                        <Run x:Name="_DownloadSpeed"
                             Text="15 MB/s"
                             Foreground="#FF39ACD6" />
                    </Paragraph>
                </FlowDocument>
            </RichTextBox>
            <Label x:Name="DownloadStatus"
                   Content="?%"
                   HorizontalAlignment="Left"
                   Margin="219,10,0,0"
                   VerticalAlignment="Top"
                   FontFamily="Arial"
                   FontSize="10"
                   FontWeight="Bold"
                   Foreground="#FF676D75"
                   VerticalContentAlignment="Center"
                   Padding="0"
                   Width="69"
                   HorizontalContentAlignment="Right" />
        </Grid>
        <Button x:Name="EscapeDownload"
                Click="EscapeDownload_Click"
                Visibility="Hidden"
                Content=""
                HorizontalAlignment="Left"
                Height="58"
                Margin="303,538,0,0"
                VerticalAlignment="Top"
                Width="58"
                BorderBrush="{x:Null}"
                Foreground="{x:Null}"
                Style="{DynamicResource ButtonStyleSettingsOpen}">
            <Button.Background>
                <ImageBrush Stretch="Uniform"
                            ImageSource="Resources\exit_setting_button_a.png"
                            TileMode="None" />
            </Button.Background>
        </Button>
        <Grid x:Name="UpdatingPlaceholder"
              HorizontalAlignment="Left"
              Height="56"
              Margin="27,477,0,0"
              VerticalAlignment="Top"
              Width="272"
              Background="#663E464C">
            <Label x:Name="LabelPlaceholder"
                   Content="Пожалуйста Подождите"
                   HorizontalAlignment="Center"
                   VerticalAlignment="Center"
                   FontFamily="Arial"
                   FontSize="14"
                   FontWeight="Bold"
                   Foreground="White"
                   IsEnabled="False" />
        </Grid>
    </Grid>
</Window>
